package com.wanwen.exception;

import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;

import com.wanwen.utils.Result;


@RestControllerAdvice 
public class BusinessExceptionHandler {
		@ExceptionHandler(Exception.class)
		public Object handleException(Exception e) {
			System.err.println("执行了错误类");
		   return new Result(e.getMessage(), null, false);
		}
}
